<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-1.7.2.min.js" ></script>
		<script>
		function addRow(){
			$("#tab1").find("tbody").append('<tr data-index="${idx.index }" data-id="${em.id }">'
				+'<td>'
				+'<input type="text" id="em_id" name="em_id" value="ID" class="form-control">'
				+'</td>'
				+'<td>'
				+'<input id="em_name" type="text" class="form-control" name="em_name" value="姓名">'
				+'</td>'
				+'<td>'
				+'<button type="button"  onclick="addRow()">添加一行</button>'
				+'</td>'
				+'</tr>');
			}
</script>
	</head>
	<body>
		 <table id="tab1" data-toggle="table" data-striped="true" data-click-to-select="true" data-mobile-responsive="true">
           	<tbody>
	               <tr>
	                 <th data-field="start">ID</th>
	                  <th data-field="start">姓名</th>
	               </tr>
			  <tr id="a" data-index="${idx.index }" data-id="${em.id }" >
				<td>
					<input type="text" id="em_id" name="em_id" value="ID" class="form-control">
				</td>
				<td>
					<input id="em_name" type="text" class="form-control" name="em_name" value="姓名">
				</td>
				<td>
				<button type="button"  onclick="addRow()">添加一行</button>
				</td>
			  </tr>
          	   </tbody>
	        </table>
	</body>
</html>

